// routes.js

const createRoute = (name, path, requiresAuth = false) => ({
    name,
    path,
    meta: requiresAuth 
});

const ROUTES = [
	
	
	
	createRoute('traning/traning', '/pages/traning/traning'),
    createRoute('index/index', '/pages/index/index'),
    createRoute('index/login', '/pages/index/login'),
    createRoute('index/register', '/pages/index/register'),
    createRoute('index/forget', '/pages/index/forget'),
	
	createRoute('classify/index', '/pages/classify/index'),
	
	createRoute('goods/comment', '/pages/goods/comment'),
	createRoute('goods/search', '/pages/goods/search'),
	createRoute('goods/list', '/pages/goods/list'),
	createRoute('goods/details', '/pages/goods/details'),
	createRoute('cart/index', '/pages/cart/index'),
	createRoute('coupon/index', '/pages/coupon/index'),
	createRoute('order/create', '/pages/order/create'),
	createRoute('order/pay', '/pages/order/pay'),
	createRoute('index/msg', '/pages/index/msg'),
	createRoute('order/select_address', '/pages/order/select_address'),
	createRoute('member/personal', '/pages/member/personal'),
	createRoute('article/view', '/pages/article/view'),
	
	
	
	
    createRoute('member/index', '/pages/member/index'),
    createRoute('member/setting', '/pages/member/setting'),
	
	
    createRoute('member/order_list', '/pages/member/order_list', true), // 需要登录
    createRoute('member/address_list', '/pages/member/address_list', true), // 需要登录
	createRoute('member/address_edit', '/pages/member/address_edit', true), // 需要登录
	
	createRoute('member/my_coupon', '/pages/member/my_coupon',true), // 需要登录
	createRoute('member/my_favorite', '/pages/member/my_favorite',true), // 需要登录
	
    // 其他路由
];

export default ROUTES;
